package indi.zhifa.study2025.oa.dao.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import indi.zhifa.engine.core.common.ann.mp.CheckMin;
import indi.zhifa.engine.core.common.entity.mpe.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * <p>
 * 角色组表，一个用户，对同一角色组，只能挂一个角色
 * </p>
 *
 * @author 芝麻酱
 * @since 2025-04-08
 */
@Data
@TableName("role_group")
@Schema(title = "GenRoleGroupEntity对象", description = "角色组表，一个用户，对同一角色组，只能挂一个角色")
public class GenRoleGroupEntity extends BaseEntity {

    @CheckMin
    @Schema(title = "角色组码")
    private String code;

    @TableField(value = "`order`")
    @Schema(title = "优先级")
    private Integer order;

    @Schema(title = "角色组名")
    private String name;


}
